﻿using System.Collections.Generic;
using WPFSchematics.Graphics.Views;

namespace OPSYS_Schematic.BussinessLogic
{
    public interface IDesignerViewManager
    {
        IList<ShapeView> ShapeViews { get; set; }

        /// <summary>
        /// 当前激活的ShapeView
        /// </summary>
        ShapeView CurrentShapeView { get; set; }

        /// <summary>
        /// 激活指定的ShapeView
        /// </summary>
        /// <param name="shapeView"></param>
        /// <returns></returns>
        bool ActiveShapeView(ShapeView shapeView);

        /// <summary>
        /// 添加ShapeView
        /// </summary>
        /// <param name="shapeView"></param>
        void AddShapeView(ShapeView shapeView);

        /// <summary>
        /// 移除指定的ShapeView
        /// </summary>
        /// <param name="shapeView"></param>
        void RemoveShapeView(ShapeView shapeView);

         ShapeView SecondShapeView { get; }

        /// <summary>
        /// 清除所有的ShapeView
        /// </summary>
        void Clear();
    }
}